﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace WmsService.Derived
{
    [Serializable()]
    [DataContract(IsReference = true)]
    public class ExtendInvoiceBill : InvoiceBill
    {
        /// <summary>
        /// 选中行属性
        /// </summary>
        [DataMember]
        public bool IsSelect { get; set; }
        /// <summary>
        /// 已经支付金额，此属性是从付款单明细中抓出来的
        /// </summary>
        [DataMember]
        public decimal PayCompleteAmount { get; set; }

        /// <summary>
        /// 本次付款金额，默认和未付款金额一致，提供给付款明细新增的查询界面使用
        /// </summary>
        [DataMember]
        public decimal PayApplyBillDtlPayAmountTax { get; set; }

        #region 作废属性 ==由于需求改变，一个发票可以属于多个付款单
        //[DataMember]
        //public bool IsSelect { get; set; }
        //[DataMember]
        //public string PayApplyDept { get; set; }
        //[DataMember]
        //public string PayApplyState { get; set; }
        //[DataMember]
        //public string PayApplyStateDesc
        //{
        //    get
        //    {
        //        if (PayApplyState == Constant.BillStateDraft)
        //            return "草稿";
        //        else if (PayApplyState == Constant.BillStateAffirm)
        //            return "确认";
        //        else if (PayApplyState == Constant.BillStateDelete)
        //            return "作废";
        //        return "无付款单";
        //    }
        //    set { }
        //}
        //[DataMember]
        //public decimal TotalAmount { get; set; }
        //[DataMember]
        //public string PayTypeName { get; set; }
        #endregion

    }
}